<div class="ivu-form ivu-form-label-right">
    <!-- 脚本将会混入表单自定义表单控件 -->
    <script>
		window.custFormComponentMixin ={
            data: function () {
                return {"test":"helloWorld"};
            },
            created:function(){
                console.log("混入对象的钩子被调用");
            },methods:{
                testaaa:function(){alert(1)},
            }
        }
    </script>
    <#list model.calGroups() as group>
        <#if group.calGroupType()=="fz">
            <!-- 主表 -->
            <div class="weui-cells weui-cells_form">
                <#list group.groupColumn as column>
                    <#if column.calIsShowColumn()>
                        <div class="weui-cell" v-ab-permission:show="${parser.getColumnPermissionPath(column)}">
                            <div class="weui-cell__hd">
                                <label class="weui-label">${column.label}</label>
                            </div>
                            <div class="weui-cell__bd">${parser.getColumn(column)}</div>
                        </div>
                    </#if>
                </#list>
            </div>
        </#if>
        <#if group.calGroupType()=="kzb">
            <!-- 块子表 -->
            <div ${parser.getSubAttrs(group)}>
                <div class="weui-cells__title">
                    <span class="title">${group.label}</span>
                    <ab-sub-add href="javascript:;" class="fa fa-plus weui-btn weui-btn_mini weui-btn_primary" v-model="${parser.getTableVModlePath(group)}" v-bind:init-data="initData.${parser.calBoKey()}.${group.calTableName()}" v-ab-permission:edit="${parser.getTablePermissionPath(group)}"></ab-sub-add>
                </div>

                <div class="weui-cells weui-cells_form" v-for="(${group.calTableName()},index) in ${parser.getTableVModlePath(group)}">
                    <div class="weui-cells__title">
                        <a href="javascript:;" class="fa fa-trash weui-btn weui-btn_mini weui-btn_warn pull-right"  v-sub-del="[${parser.getTableVModlePath(group)},index]" v-ab-permission:edit="${parser.getTablePermissionPath(group)}"></a>
                    </div>

                    <#list group.groupColumn as groupColumn>
                        <#if groupColumn.calIsShowColumn()>
                            <div class="weui-cell" v-ab-permission:show="${parser.getColumnPermissionPath(groupColumn)}">
                                <div class="weui-cell__hd">
                                    <label class="weui-label">${groupColumn.label}</label>
                                </div>
                                <div class="weui-cell__bd">${parser.getColumn(groupColumn)}</div>
                            </div>
                        </#if>
                    </#list>
                </div>
            </div>
        </#if>
    </#list>
</div>
